#!/bin/bash
clear
echo "======================================"
echo "======================================"
echo "======================================"
for host in zk1 zk2 zk3
do
  echo
  echo "主机：$host"
  echo "*********************"
  ssh $host "source /etc/profile;/root/apps/zookeeper-3.4.5/bin/zkServer.sh status"
  echo
done
echo "======================================"
echo "======================================"
echo "======================================"
